package cn.stylefeng.guns.modular.comment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * 评论的晒图
 * @author allen
 * @date 2021/4/12 10:26
 * @version 1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "comment_picture")
public class CommentPictureEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 评论ID
     */
    @TableField(value = "comment_info_id")
    private Long commentInfoId;

    /**
     * 评论晒图的图片路径
     */
    @TableField(value = "comment_picture_path")
    private String commentPicturePath;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_COMMENT_INFO_ID = "comment_info_id";

    public static final String COL_COMMENT_PICTURE_PATH = "comment_picture_path";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";
}